package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:28 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceProductDatabaseModelRelate implements java.io.Serializable {

  public WorkspaceProductDatabaseModelRelate() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long workspaceProductDatabaseRelateId;

  /** Attribute workspaceProductDatabaseRelateId Be Seted Falg */
  private boolean workspaceProductDatabaseRelateIdSetted = false;

  /** Attribute workspaceProductDatabaseRelateId is Null Falg */
  private boolean workspaceProductDatabaseRelateIdNull = false;

  /**
   * Get workspaceProductDatabaseRelateId
   *
   * @return long
   */
  public final long getWorkspaceProductDatabaseRelateId() {

    return workspaceProductDatabaseRelateId;
  }

  /**
   * Set workspaceProductDatabaseRelateId
   *
   * @param long
   */
  public final void setWorkspaceProductDatabaseRelateId(long workspaceProductDatabaseRelateId) {

    this.workspaceProductDatabaseRelateId = workspaceProductDatabaseRelateId;

    this.workspaceProductDatabaseRelateIdSetted = true;

    this.setWorkspaceProductDatabaseRelateIdNull(false);
  }

  /**
   * Get workspaceProductDatabaseRelateId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceProductDatabaseRelateIdSetted() {
    return this.workspaceProductDatabaseRelateIdSetted;
  }

  /** Set workspaceProductDatabaseRelateId Null */
  public final void setWorkspaceProductDatabaseRelateIdNull() {

    this.workspaceProductDatabaseRelateIdNull = true;
  }

  public final void setWorkspaceProductDatabaseRelateIdNull(boolean aNullFlag) {

    this.workspaceProductDatabaseRelateIdNull = aNullFlag;
  }

  public final boolean isWorkspaceProductDatabaseRelateIdNull() {

    return this.workspaceProductDatabaseRelateIdNull;
  }

  private long modelPcakageId;

  /** Attribute modelPcakageId Be Seted Falg */
  private boolean modelPcakageIdSetted = false;

  /** Attribute modelPcakageId is Null Falg */
  private boolean modelPcakageIdNull = false;

  /**
   * Get modelPcakageId
   *
   * @return long
   */
  public final long getModelPcakageId() {

    return modelPcakageId;
  }

  /**
   * Set modelPcakageId
   *
   * @param long
   */
  public final void setModelPcakageId(long modelPcakageId) {

    this.modelPcakageId = modelPcakageId;

    this.modelPcakageIdSetted = true;

    this.setModelPcakageIdNull(false);
  }

  /**
   * Get modelPcakageId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isModelPcakageIdSetted() {
    return this.modelPcakageIdSetted;
  }

  /** Set modelPcakageId Null */
  public final void setModelPcakageIdNull() {

    this.modelPcakageIdNull = true;
  }

  public final void setModelPcakageIdNull(boolean aNullFlag) {

    this.modelPcakageIdNull = aNullFlag;
  }

  public final boolean isModelPcakageIdNull() {

    return this.modelPcakageIdNull;
  }

  private java.util.Date lastUpdateTime;

  /** Attribute lastUpdateTime Be Seted Falg */
  private boolean lastUpdateTimeSetted = false;

  /** Attribute lastUpdateTime is Null Falg */
  private boolean lastUpdateTimeNull = false;

  /**
   * Get lastUpdateTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getLastUpdateTime() {

    return lastUpdateTime;
  }

  /**
   * Set lastUpdateTime
   *
   * @param java.util.Date
   */
  public final void setLastUpdateTime(java.util.Date lastUpdateTime) {

    this.lastUpdateTime = lastUpdateTime;

    this.lastUpdateTimeSetted = true;

    this.setLastUpdateTimeNull(this.lastUpdateTime == null);
  }

  /**
   * Get lastUpdateTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastUpdateTimeSetted() {
    return this.lastUpdateTimeSetted;
  }

  /** Set lastUpdateTime Null */
  public final void setLastUpdateTimeNull() {

    this.lastUpdateTimeNull = true;
  }

  public final void setLastUpdateTimeNull(boolean aNullFlag) {

    this.lastUpdateTimeNull = aNullFlag;
  }

  public final boolean isLastUpdateTimeNull() {

    return this.lastUpdateTimeNull;
  }

  private long submitterId;

  /** Attribute submitterId Be Seted Falg */
  private boolean submitterIdSetted = false;

  /** Attribute submitterId is Null Falg */
  private boolean submitterIdNull = false;

  /**
   * Get submitterId
   *
   * @return long
   */
  public final long getSubmitterId() {

    return submitterId;
  }

  /**
   * Set submitterId
   *
   * @param long
   */
  public final void setSubmitterId(long submitterId) {

    this.submitterId = submitterId;

    this.submitterIdSetted = true;

    this.setSubmitterIdNull(false);
  }

  /**
   * Get submitterId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSubmitterIdSetted() {
    return this.submitterIdSetted;
  }

  /** Set submitterId Null */
  public final void setSubmitterIdNull() {

    this.submitterIdNull = true;
  }

  public final void setSubmitterIdNull(boolean aNullFlag) {

    this.submitterIdNull = aNullFlag;
  }

  public final boolean isSubmitterIdNull() {

    return this.submitterIdNull;
  }

  private String submitterName;

  /** Attribute submitterName Be Seted Falg */
  private boolean submitterNameSetted = false;

  /** Attribute submitterName is Null Falg */
  private boolean submitterNameNull = false;

  /**
   * Get submitterName
   *
   * @return String
   */
  public final String getSubmitterName() {

    if (isSubmitterNameNull()) {
      return null;
    } else {
      return StringUtils.trim(submitterName);
    }
  }

  /**
   * Set submitterName
   *
   * @param String
   */
  public final void setSubmitterName(String submitterName) {

    this.submitterName = StringUtils.trim(submitterName);

    this.submitterNameSetted = true;

    this.setSubmitterNameNull(this.submitterName == null);
  }

  /**
   * Get submitterName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSubmitterNameSetted() {
    return this.submitterNameSetted;
  }

  /** Set submitterName Null */
  public final void setSubmitterNameNull() {

    this.submitterNameNull = true;
  }

  public final void setSubmitterNameNull(boolean aNullFlag) {

    this.submitterNameNull = aNullFlag;
  }

  public final boolean isSubmitterNameNull() {

    return this.submitterNameNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private String packageName;

  /** Attribute packageName Be Seted Falg */
  private boolean packageNameSetted = false;

  /** Attribute packageName is Null Falg */
  private boolean packageNameNull = false;

  /**
   * Get packageName
   *
   * @return String
   */
  public final String getPackageName() {

    if (isPackageNameNull()) {
      return null;
    } else {
      return StringUtils.trim(packageName);
    }
  }

  /**
   * Set packageName
   *
   * @param String
   */
  public final void setPackageName(String packageName) {

    this.packageName = StringUtils.trim(packageName);

    this.packageNameSetted = true;

    this.setPackageNameNull(this.packageName == null);
  }

  /**
   * Get packageName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isPackageNameSetted() {
    return this.packageNameSetted;
  }

  /** Set packageName Null */
  public final void setPackageNameNull() {

    this.packageNameNull = true;
  }

  public final void setPackageNameNull(boolean aNullFlag) {

    this.packageNameNull = aNullFlag;
  }

  public final boolean isPackageNameNull() {

    return this.packageNameNull;
  }

  private long domainId;

  /** Attribute domainId Be Seted Falg */
  private boolean domainIdSetted = false;

  /** Attribute domainId is Null Falg */
  private boolean domainIdNull = false;

  /**
   * Get domainId
   *
   * @return long
   */
  public final long getDomainId() {

    return domainId;
  }

  /**
   * Set domainId
   *
   * @param long
   */
  public final void setDomainId(long domainId) {

    this.domainId = domainId;

    this.domainIdSetted = true;

    this.setDomainIdNull(false);
  }

  /**
   * Get domainId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDomainIdSetted() {
    return this.domainIdSetted;
  }

  /** Set domainId Null */
  public final void setDomainIdNull() {

    this.domainIdNull = true;
  }

  public final void setDomainIdNull(boolean aNullFlag) {

    this.domainIdNull = aNullFlag;
  }

  public final boolean isDomainIdNull() {

    return this.domainIdNull;
  }

  private String domainName;

  /** Attribute domainName Be Seted Falg */
  private boolean domainNameSetted = false;

  /** Attribute domainName is Null Falg */
  private boolean domainNameNull = false;

  /**
   * Get domainName
   *
   * @return String
   */
  public final String getDomainName() {

    if (isDomainNameNull()) {
      return null;
    } else {
      return StringUtils.trim(domainName);
    }
  }

  /**
   * Set domainName
   *
   * @param String
   */
  public final void setDomainName(String domainName) {

    this.domainName = StringUtils.trim(domainName);

    this.domainNameSetted = true;

    this.setDomainNameNull(this.domainName == null);
  }

  /**
   * Get domainName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDomainNameSetted() {
    return this.domainNameSetted;
  }

  /** Set domainName Null */
  public final void setDomainNameNull() {

    this.domainNameNull = true;
  }

  public final void setDomainNameNull(boolean aNullFlag) {

    this.domainNameNull = aNullFlag;
  }

  public final boolean isDomainNameNull() {

    return this.domainNameNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceProductDatabaseModelRelate) == false) {
      return false;
    }
    WorkspaceProductDatabaseModelRelate other = (WorkspaceProductDatabaseModelRelate) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("workspaceProductDatabaseRelateId=");
    buffer.append(this.workspaceProductDatabaseRelateId);

    buffer.append("modelPcakageId=");
    buffer.append(this.modelPcakageId);

    buffer.append("lastUpdateTime=");
    buffer.append(this.lastUpdateTime);

    buffer.append("submitterId=");
    buffer.append(this.submitterId);

    buffer.append("submitterName=");
    buffer.append(this.submitterName);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("packageName=");
    buffer.append(this.packageName);

    buffer.append("domainId=");
    buffer.append(this.domainId);

    buffer.append("domainName=");
    buffer.append(this.domainName);

    buffer.append("]");

    return buffer.toString();
  }
}
